import actionType from "./actionType"

const initState={
    list:[]
}
const reducer=(state=initState,action)=>{
    const {type,payload}=action
    switch (type) {
        case actionType.SET_LIST:
            return{
                ...state,
                list:payload
            }
    
        default:
            return{
                ...state
            }
    }
}
export default reducer